import java.util.*;


public class TRAINMauMau_RandomPlayer extends MauMau_Intf {
	private Random rand;
	
	TRAINMauMau_RandomPlayer() {
        rand = new Random(0);
    };
    
    // Overwrite methods you want to use
    public void newGame() {
       // System.out.println(getName() + ": newGame called");
    };
    
	@Override
	public int step(MauMau_State state, Vector<Integer> actions, double reward,
			boolean terminal) {
		//System.out.println(getName() + ": step-method called.   reward = " + reward + "    terminal = " + terminal);
		// Terminal state? No action has to be selected. Perform RL-updates (e.g. for Monte Carlo)
        if(terminal) {
            //System.out.println(getName() + ": I am called because game has ended");
            return 0;
        }

		// Select random action
        int pos = rand.nextInt(actions.size());
        Integer i = actions.get(pos);
        return i.intValue();
	}
	
    public void cleanup() {
     //   System.out.println(getName() + ": Cleanup called");
    }
}
